var n;
function timer_slide(){
	console.info('timer_slide : ' + n);
	n = setInterval(slide_show,1000);
}
function slide_show(){
	var origin_path = "img/景点/北京/";
	var img = document.getElementById('slide-img');
//	console.info(img);
	var src = img.getAttribute('src');
//	console.info('src : '+src);
	var i = parseInt((Math.random()*4+1));
	console.info('src.get(0) : '+  src.charAt(10));
//	"img/景点/北京/1.jpg"
	var new_src = origin_path + i +'.jpg';
//	console.info('new_src : '+src);
	console.info('src==new_src? : '+(src==new_src))
	if(src!=new_src){
		img.setAttribute("src",new_src);
	}else{
		new_src = origin_path + (i+1) +'.jpg';
		img.setAttribute("src",new_src);
	}
	console.info('n : ' + n);
}
function clear_timer(){
	clearInterval(n); 
	console.info('clear Interval : ' + n);
}
function hello(){
	clearInterval(n); 
	console.info("hello:"+n);
}
timer_slide();